<template>
    <el-table :data="data" style="width: 100%">
      <el-table-column prop="id" label="编号" width="100"></el-table-column>
      <el-table-column prop="dutyPerson" label="执勤人员" width="120"></el-table-column>
      <el-table-column prop="dutyLocation" label="执勤地点" width="200"></el-table-column>
      <el-table-column prop="dutyTime" label="执勤时间"></el-table-column>
      <el-table-column label="详细信息" width="120">
        <template #default>
          <el-button size="small">详细信息</el-button>
        </template>
      </el-table-column>
    </el-table>
  </template>
  
  <script lang="ts" setup>
  defineProps({
    data: {
      type: Array,
      required: true
    }
  })
  </script>